//
//  UIViewController+Extend.m
//  wobingwoyi
//
//  Created by WGP on 2016/11/22.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "UIViewController+Extend.h"

@implementation UIViewController (Extend)

-(void)illegalLoginWithSuccessBlock:(void(^)())successLoginBlock
{
    //                账号过期
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:@"账号过期,请重新登录" preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *sure = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        
        successLoginBlock();
    }];
    [alertController addAction:sure];
    [self presentViewController:alertController animated:YES completion:nil];
}

@end
